package com.jill.express;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Message {
	private String account;
	
	private String phone;
	
	private String cabinetNum;
	
	private String expressCompany;
	
	private Date sendTime;
	
	private String sendPhone;

	public Message(String account, String phone, String cabinetNum,
			String expressCompany, String sendPhone) {
		super();
		this.account = account;
		this.phone = phone;
		this.cabinetNum = cabinetNum;
		this.expressCompany = expressCompany;
		this.sendTime = new Date();
		this.sendPhone = sendPhone;
	}

	public String getExpressCompany() {
		return expressCompany;
	}

	public void setExpressCompany(String expressCompany) {
		this.expressCompany = expressCompany;
	}

	public String getSendPhone() {
		return sendPhone;
	}

	public void setSendPhone(String sendPhone) {
		this.sendPhone = sendPhone;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getCabinetNum() {
		return cabinetNum;
	}

	public void setCabinetNum(String cabinetNum) {
		this.cabinetNum = cabinetNum;
	}

	public Date getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}
	
	public String getFormatTime(){
		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		return format.format(sendTime);
	}
	
	public String getFormatDay(){
		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
		return format.format(sendTime);
	}
	
}
